<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link href="/styles/base.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/system/common.js"></script>
    <script type="text/javascript" src="/js/system/travelfilter.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-form/jquery.form.js"></script>
    <link href="/styles/travelfilter.css" rel="stylesheet" type="text/css">


</head>


<script>


    $(function () {

      var c = ${(themeid)!};
            var d = ${(dayid)!};

        if (c != null){
            $(".theme").removeClass("on");
            $(".theme[data-theme= "+c+" ]").addClass("on");
            $("#theme").val(c);
        }
        if (d != null){
            $(".vacation").removeClass("on");
            $(".vacation[data-vacation= "+d+" ]").addClass("on");
            $("#vacation").val(d);
        }

        $("#searchForm").ajaxForm(function (data) {
            $(".row-list").html(data);
        })
        $("#searchForm").submit();*/

        //根据月份查询

    })


</script>

<body>
<input type="hidden" value="${(dayid)!}" class="dayid">
<input type="hidden" value="${(themeid)!}" class="themeid">
    <div class="lww_header">
        <div class="header_wrap">
            <div class="header_logo">
                <a href="javascript:;" class="lww_logo"></a>
            </div>
            <ul class="header_nav">
                <li><a href="/">首页</a></li>
                <li class="header_nav_active"><a href="/destination">目的地</a></li>
                <li><a href="/strategy">旅游攻略</a></li>
                <li><a href="javascript:;">去旅行<i class="icon_caret_down"></i></a></li>
                <li><a href="javascript:;">机票</a></li>
                <li><a href="javascript:;">酒店</a></li>
                <li><a href="javascript:;">社区<i class="icon_caret_down"></i></a></li>
            </ul>
            <div class="header_search">
                <input type="text" />
                <a class="icon_search"></a>
            </div>
            <div class="login_info">
                <div class="head_user">
                    <a href="javascript:;">
                        <img src="/images/user.png" />
                        <i class="icon_caret_down"></i>
                    </a>
                </div>
                <div class="header_msg">
                    消息<i class="icon_caret_down"></i>
                </div>
                <div class="header_daka">
                    <a href="javascript:;">打卡</a>
                </div>
            </div>
        </div>
        <div class="shadow"></div>
    </div>
    <div class="container">
        <div class="row-top">
            <div class="wrapper">
                <div class="top-bar">
                    <div class="crumb">
                        <div class="item"><a href="javascript:;" target="_blank">目的地</a><em>&gt;</em></div>
                        <div class="item cur">目的地筛选</div>
                    </div>
                </div>
                <div class="filter-title">目的地筛选</div>
                <div class="filter-nav chose">
                    <dl class="clearfix">
                            <dt>时间</dt>
                            <dd class="J_dd time">
                                <div class="month clearfix">
                                    <a class="on" href="javascript:;" data-id="-1">不限</a>
                                    <a href="javascript:;" data-id="1">1月</a>
                                    <a href="javascript:;" data-id="2">2月</a>
                                    <a href="javascript:;" data-id="3">3月</a>
                                    <a href="javascript:;" data-id="4">4月</a>
                                    <a href="javascript:;" data-id="5">5月</a>
                                    <a href="javascript:;" data-id="6">6月</a>
                                    <a href="javascript:;" data-id="7">7月</a>
                                    <a href="javascript:;" data-id="8">8月</a>
                                    <a href="javascript:;" data-id="9">9月</a>
                                    <a href="javascript:;" data-id="10">10月</a>
                                    <a href="javascript:;" data-id="11">11月</a>
                                    <a href="javascript:;" data-id="12">12月</a>
                                </div>
                                <div class="festival clearfix">
                                    <a href="javascript:;" data-id="1">元旦</a>
                                    <a href="javascript:;" data-id="2">春节</a>
                                    <a href="javascript:;" data-id="4">清明</a>
                                    <a href="javascript:;" data-id="5">五一</a>
                                    <a href="javascript:;" data-id="6">端午</a>
                                    <a href="javascript:;" data-id="8">中秋</a>
                                    <a href="javascript:;" data-id="10">国庆</a>
                                    <a href="javascript:;" data-id="1">寒假</a>
                                    <a href="javascript:;" data-id="7">暑假</a>
                                </div>
                            </dd>
                        </dl>
                    <script>
                        $(function () {
                            //根据时间进行搜索
                            $(".time a").click(function () {

                                $(this).addClass("on");
                                var month = $(this).data("id");
                                if(month != -1){
                                    $(".time a:first-child").removeClass("on");
                                }

                                var month = $(this).data("id");
                                $.get("/destination/themeAndDays?month="+month,function (data) {
                                    $(".row-list").html(data);
                                });

                            })
                            $(".time a").focusout(function () {
                                var month = $(this).data("id");
                                if(month != -1){
                                    $(".time a:first-child").removeClass("on");
                                }
                                $(this).removeClass("on");

                            })

                            //根据主题id搜索
                            $(".sub-nav a").click(function () {
                                var themeId = $(this).data("theme");
                                $.get("/destination/themeAndDays?themeId="+themeId,function (data) {
                                    $(".row-list").html(data);
                                });
                            })
                            //根据天数查询
                            $(".traveldays a").click(function () {
                                var dayId= $(this).data("days");
                                $.get("/destination/themeAndDays?dayId="+dayId,function (data) {
                                    $(".row-list").html(data);
                                });
                            })
                        })
                    </script>
                    <dl class="clearfix">
                        <dt>主题</dt>
                        <dd class="J_dd" id="a">
                            <a class="theme on" data-theme="-1" href="javascript:;">不限</a>
                            <div class="sub-nav">
                                <dl class="clearfix">
                                    <dt>全年适宜：</dt>
                                    <dd>
                                        <#list themesAll as th>
                                        <a href="javascript:;" data-theme="${(th.id)!}" class="theme">${(th.name)!}</a>
                                        </#list>
                                    </dd>
                                </dl>
                                <dl class="clearfix">
                                    <dt>季节：</dt>
                                    <dd>
                                        <#list themeSeason as th>
                                        <a href="javascript:;" data-theme="${(th.id)!}" class="theme">${(th.name)!}</a>
                                        </#list>
                                    </dd>
                                </dl>
                                <dl class="clearfix">
                                    <dt>出行方式：</dt>
                                    <dd>
                                        <#list themeLeaveType as th>
                                        <a href="javascript:;" data-theme="${(th.id)!}" class="theme">${(th.name)!}</a>
                                        </#list>
                                    </dd>
                                </dl>
                            </div>
                        </dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>天数</dt>
                        <dd class="J_dd traveldays">
                            <a class="on num" href="javascript:;" data-days="-1">不限</a>
                            <a href="javascript:;" data-days="1" class="num">2-3天</a>
                            <a href="javascript:;" data-days="2" class="num">4-5天</a>
                            <a href="javascript:;" data-days="3" class="num">6-9天</a>
                            <a href="javascript:;" data-days="4" class="num">10天及以上</a>
                        </dd>
                    </dl>
                </div>
            </div>
        </div>
        <div class="row-list">
            <div class="wrapper">
                <ul class="clearfix">
                    <#list destination as dest>
                    <li class="item">
                    <div class="img"><a href="/travel-scenic-spot/mafengwo/10083.html" target="_blank"><img data-original="http://p3-q.mafengwo.net/s6/M00/10/CD/wKgB4lM9BUiALPceAAQyEeHtADc23.jpeg?imageMogr2%2Fthumbnail%2F%21640x400r%2Fgravity%2FCenter%2Fcrop%2F%21640x400%2Fquality%2F90" height="200" width="320" src="${dest.coverUrl}" style="display: inline;"><div class="title">${dest.city}</div></a></div>
                    <div class="info">
                        <p class="detail">${(dest.detail)!}</p>
                        <div class="hot">
                            <span class="label">TOP3</span>
                            <#list dest.list as t>
                            <a href="/poi/14375.html" target="_blank">${(t.tags)!}</a>
                                <span class="divide"></span>
                            </#list>
                            <#--<span class="divide"></span>
                            <a href="/poi/15054.html" target="_blank">皇帝岛</a>
                            <span class="divide"></span>
                            <a href="/poi/5523033.html" target="_blank">曼谷河畔夜市</a>-->
                        </div>

                        <div class="line"><a href="/mdd/route/10083_253.html" target="_blank"><em>1</em>${(dest.line)!}</a></div>
                    </div>
                </li>
                    </#list>
                </ul>
                <div id="filterpagination"><div align="right" class="m-pagination">

                </div>
                </div>
            </div>
        </div>
    <div id="footer">
        <div class="ft-content" style="width: 1105px">
            <div class="ft-info clearfix">
                <dl class="ft-info-col ft-info-intro">
                    <dt>马蜂窝旅游网</dt>
                    <dd>叩丁狼是一家专注于培养高级IT技术人才，为学员提供定制化IT职业规划方案及</dd>
                    <dd>意见咨询服务的教育科技公司，为您提供海量优质课程，以及创新的线上线下学</dd>
                    <dd>习体验，帮助您获得全新的个人发展和能力提升。</dd>
                </dl>
                <dl class="ft-info-col ft-info-qrcode">
                    <dd>
                        <span class="ft-qrcode-tejia"></span>
                    </dd>
                    <dd>
                        <span class="ft-qrcode-weixin"></span>
                    </dd>
                    <dd>
                        <span class="ft-qrcode-weixin" style="background-image: url('https://p3-q.mafengwo.net/s10/M00/48/A9/wKgBZ1t_4sSAVJ6uAAAlzJ0PZgU881.png?imageMogr2%2Fthumbnail%2F%2194x90r%2Fgravity%2FCenter%2Fcrop%2F%2194x90%2Fquality%2F90')"></span>
                    </dd>
                </dl>
                <dl class="ft-info-social">
                    <dt>向崇尚自由的加勒比海盗致敬！</dt>
                    <dd>
                        <a class="ft-social-weibo" target="_blank" href="javascript:;" rel="nofollow"><i
                                class="ft-social-icon"></i></a>
                        <a class="ft-social-qqt" target="_blank" href="javascript:;" rel="nofollow"><i
                                class="ft-social-icon"></i></a>
                        <a class="ft-social-qzone" target="_blank" href="javascript:;" rel="nofollow"><i
                                class="ft-social-icon"></i></a>
                    </dd>
                </dl>
            </div>

            <div class="ft-links">
                <a target="_blank" href="http://china.makepolo.com/">马可波罗</a><a target="_blank" href="http://www.onlylady.com/">Onlylady女人志</a><a target="_blank" href="http://trip.elong.com/">艺龙旅游指南</a><a target="_blank" href="http://www.cncn.com">欣欣旅游网</a>
                <a target="_blank" href="http://www.8264.com/">户外运动</a><a target="_blank" href="http://www.yue365.com/">365音乐网</a><a target="_blank" href="http://ishare.iask.sina.com.cn/">爱问共享资料</a><a target="_blank" href="http://www.uzai.com/">旅游网</a>
                <a target="_blank" href="http://www.zongheng.com/">小说网</a>
                <a target="_blank" href="http://www.xuexila.com/">学习啦</a><a target="_blank" href="http://www.yododo.com">游多多自助游</a><a target="_blank" href="http://www.zhcpic.com/">问答</a><a target="_blank" href="http://huoche.mafengwo.cn/">火车时刻表</a>
                <a target="_blank" href="http://www.lvmama.com">驴妈妈旅游网</a>
                <a target="_blank" href="http://www.haodou.com/">好豆美食网</a><a target="_blank" href="http://www.taoche.com/">二手车</a><a target="_blank" href="http://www.lvye.cn">绿野户外</a><a target="_blank" href="http://www.tuniu.com/">途牛旅游网</a>
                <a target="_blank" href="http://www.mapbar.com/">图吧</a>
                <a target="_blank" href="http://www.chnsuv.com">SUV联合越野</a><a target="_blank" href="http://www.uc.cn/">手机浏览器</a><a target="_blank" href="http://sh.city8.com/">上海地图</a><a target="_blank" href="http://www.tianqi.com/">天气预报查询</a>
                <a target="_blank" href="http://www.ly.com/">同程旅游</a>
                <a target="_blank" href="http://www.tieyou.com/">火车票</a><a target="_blank" href="http://www.yunos.com/">YunOS</a><a target="_blank" href="http://you.ctrip.com/">携程旅游</a><a target="_blank" href="http://www.jinjiang.com">锦江旅游</a>
                <a target="_blank" href="http://www.huoche.net/">火车时刻表</a>
                <a target="_blank" href="http://www.tripadvisor.cn/">TripAdvisor</a><a target="_blank" href="http://www.tianxun.com/">天巡网</a><a target="_blank" href="http://www.mayi.com/">短租房</a><a target="_blank" href="http://www.zuzuche.com">租租车</a>
                <a target="_blank" href="http://www.5fen.com/">五分旅游网</a>
                <a target="_blank" href="http://www.zhuna.cn/">酒店预订</a><a target="_blank" href="http://www.ailvxing.com">爱旅行网</a><a target="_blank" href="http://360.mafengwo.cn/all.php">旅游</a><a target="_blank" href="http://vacations.ctrip.com/">旅游网</a>
                <a target="_blank" href="http://www.wed114.cn">wed114结婚网</a>
                <a target="_blank" href="http://www.chexun.com/">车讯网</a><a target="_blank" href="http://www.aoyou.com/">遨游旅游网</a><a target="_blank" href="http://www.91.com/">手机</a>
                <a href="javascript:;" target="_blank">更多友情链接&gt;&gt;</a>
            </div>
        </div>
    </div>
    <div class="mfw-toolbar" id="_j_mfwtoolbar" style="display: block;">
        <div class="toolbar-item-top" style="display: none;">
            <a role="button" class="btn _j_gotop">
                <i class="icon_top"></i>
                <em>返回顶部</em>
            </a>
        </div>
        <div class="toolbar-item-feedback">
            <a role="button" data-japp="feedback" class="btn">
                <i class="icon_feedback"></i>
                <em>意见反馈</em>
            </a>
        </div>
        <div class="toolbar-item-code">
            <a role="button" class="btn">
                <i class="icon_code"></i>
            </a>
            <a role="button" class="mfw-code _j_code">


                <img src="https://p1-q.mafengwo.net/s1/M00/6C/51/wKgIC1t_6TuASybrAADGUPUHjr021.jpeg?imageMogr2%2Fthumbnail%2F%21450x192r%2Fgravity%2FCenter%2Fcrop%2F%21450x192%2Fquality%2F90"
                    width="450" height="192">
            </a>
            <!--<div class="wx-official-pop"><img src="http://images.mafengwo.net/images/qrcode-weixin.gif"><i class="_j_closeqrcode"></i></div>-->
        </div>
    </div>


    <!--数据-->
  <#--  <form action="/travel/select" method="post" id="searchForm">
        <input type="hidden" name="vacation" id="vacation" value="-1">
        <input type="hidden" name="theme" id="theme" value="-1">
        <input type="hidden" name="days" id="days" value="-1">
        <div id="strategySearchPageData">
        </div>
    </form>-->
    <script>
        $(function () {
            var type;
            var cl;
            var value;
            var num;
        $(".vacation").click(function () {
            type = $(this).data("vacation");
            cl = "on";

            $(".vacation").removeClass(cl);
            $(this).addClass(cl);
            $("#vacation").val(type);
            $("#theme").val(value);
            $("#searchForm").submit();
        })

            $(".theme").click(function () {
                value = $(this).data("theme");
                cl = "on";
                $(".theme").removeClass(cl);
                $(this).addClass(cl);
                $("#vacation").val(type);
                $("#theme").val(value);
                $("#searchForm").submit();
            })

            $(".num").click(function () {
                num = $(this).data("days");
                cl = "on";
                $(".num").removeClass(cl);
                $(this).addClass(cl);
                $("#vacation").val(type);
                $("#theme").val(value);
                $("#days").val(num);
                $("#searchForm").submit();
            })
        })
    </script>


</body>

</html>